import http from "@/api";

const namespace = "/admin/config";
export const adList = (params?: object) => {
  return http.get(`${namespace}/ad/index`, params, { noLoading: false });
};
export const adDetail = (params?: object) => {
  return http.get(`${namespace}/ad/detail`, params, { noLoading: false });
};
export const adDel = (params?: object) => {
  return http.get(`${namespace}/ad/delete`, params, { noLoading: false });
};
export const adStatus = (params?: object) => {
  return http.post(`${namespace}/ad/status`, params, { noLoading: false });
};
export const adCreate = (params?: object) => {
  return http.post(`${namespace}/ad/create`, params, { noLoading: false });
};
export const adUpdate = (params?: object) => {
  return http.post(`${namespace}/ad/modify`, params, { noLoading: false });
};
